<?php
/* @var $this NdkHealthController */
/* @var $model NdkHealth */
?>

<?php
$this->breadcrumbs=array(
	'Ndk Healths'=>array('index'),
	'View',
);

$this->menu=array(
	array('label'=>'List NdkHealth', 'url'=>array('index')),
	array('label'=>'Manage NdkHealth', 'url'=>array('admin')),
);
?>

<br/>
<div class="row">
<div class="col-md-6">
<div class="alert alert-success fade in">
<i class="icon-remove close" data-dismiss="alert"></i>
<strong>Lihat!</strong>
Nota Debet Non Health.
</div>
</div>
</div>


<table>
<tr>
<td width="100"><strong>No Polis<strong></td>
<td><strong><?php echo RegHealthPolicyNon::model()->findByPk($id)->policy_no; ?></strong></td>
</tr>
</table>
<br />

<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'ndk-health-grid',
	'dataProvider'=>$model->searchView($id),
	//'filter'=>$model,
	'columns'=>array(
		array(
		'name'=>'nota_debet_no',
		'value'=>'$data->posting==1 ? "" : $data->nota_debet_no',
		 ),
		'installment_ke',
		array(
			'header'=>'Jatuh Tempo',
			'value'=>'date("d-m-Y",strtotime($data->due_date))',
			),
		array(
			'header'=>'No Polis',
			'value'=>'RegHealthPolicy::model()->findByPk($data->reg_nonhealth_policy_id)->policy_no',
			),
		array(
			'header'=>'Premi',
			'value'=>'number_format($data->premium,0,\',\',\'.\')',
			),
		array(
			'name'=>'policy_cost',
			'value'=>'number_format($data->policy_cost,0,\',\',\'.\')',
			),
		array(
			'name'=>'admin_broker',
			'value'=>'number_format($data->admin_broker,0,\',\',\'.\')',
			),
		array(
			'name'=>'brokerage',
			'value'=>'number_format($data->brokerage,0,\',\',\'.\')',
			),
		array(
			'name'=>'ppn',
			'value'=>'number_format($data->ppn,0,\',\',\'.\')',
			),
		array(
			'name'=>'pph',
			'value'=>'number_format($data->pph,0,\',\',\'.\')',
			),
	),
)); ?>

<!--
<div class="form-actions">
	<a class="btn btn-sm btn-primary" href="<?php //echo Yii::app()->createUrl('NdkHealth/prosesPosting',array('reg_health_policy_id'=>$id)) ?>">Posting</a>
</div>
-->